import request from './request';

export function getCustomers() {
  return request.get('/customers');
}

export function addCustomer(data) {
  return request.post('/customers', data);
}

export function updateCustomer(data) {
  return request.put('/customers', data);
}

export function deleteCustomer(id) {
  return request.delete(`/customers/${id}`);
} 